<div id="messages">
    <div class="section clearfix">
        <div class="messages error"><a class="dismiss">X</a>
            <h2 class="element-invisible"></h2>
            <ul>
                <?php
                if ($errForm != ''){
                    $errForm = str_replace("<p>","<li>",$errForm);
                    $errForm = str_replace("</p>","</li>",$errForm);
                    echo $errForm;
                }
                if ($error && is_array($error) && $count($error) > 0){
                    foreach($error as $e){ 
                        echo "<li>$e</li>";
                }
                
                }?>
            </ul>
        </div>
    </div>
</div>
